home *** CD-ROM | disk | FTP | other *** search
/ SVM Multimedia Villagina 2 / Villagina_2.iso / mac / SVMM 2 / Village / ECOLE / IMPRIM / IMPRIM.DIR / 00054_Script_54 < prev    next >
Text File  |  1995-10-19  |  3KB  |  99 lines

  1. on startmovie
  2.   global nom
  3.   set nom to ""
  4.   cursor 200
  5.   puppetsprite 46, true
  6.   puppetsprite 45, true
  7.   set the loch of sprite 46 to the mouseh
  8.   set the locv of sprite 46 to the mousev
  9.   set the loch of sprite 45 to the mouseh
  10.   set the locv of sprite 45 to the mousev
  11. end startmovie
  12.  
  13. on idle
  14.   set the loch of sprite 46 to the mouseh
  15.   set the locv of sprite 46 to the mousev
  16.   set the loch of sprite 45 to the mouseh
  17.   set the locv of sprite 45 to the mousev
  18.   if soundbusy(1) then
  19.     if (the mousedown) then
  20.       if ((the clickon >= 1) and (the clickon <= 12)) then
  21.         sound stop 1
  22.       end if
  23.     end if
  24.   end if
  25. end idle
  26.  
  27. on illumine spr,spr_mouse
  28.   global nom,num_sprite
  29.   puppetsprite spr,true
  30.   if sprite spr_mouse intersects spr then
  31.     if ((the name of cast (the castnum of sprite 40) contains "aide") and (spr = num_sprite))  then
  32.       nothing
  33.     else
  34.       set num_sprite to spr
  35.       set nom to "aide" && (the name of cast (the castnum of sprite spr))
  36.       puppetsprite 40,true
  37.       set the castnum of sprite 40 to the number of cast nom
  38.       updatestage
  39.     end if
  40.   else
  41.     if (spr = num_sprite) then
  42.       puppetsprite spr,false
  43.       puppetsprite 40,false
  44.       set num_sprite to 0
  45.       updatestage
  46.     end if
  47.   end if 
  48. end illumine 
  49.  
  50. on crop piece
  51.   puppetsprite piece, true
  52.   set the moveablesprite of sprite piece to true
  53.   repeat with V = 19 to 21
  54.     puppetsprite V, true
  55.     if (the name of cast (the castnum of sprite V)) contains (the name of cast (the castnum of sprite piece)) then
  56.       if the mouseup then
  57.         if sprite V intersects piece then
  58.           set the visible of sprite V to true
  59.           set the visible of sprite piece to false
  60.           set the castnum of sprite 46 to the number of cast 38
  61.         else
  62.           set the castnum of sprite 46 to the number of cast 38
  63.           repeat with k = 19 to 21
  64.             if the mouseup then
  65.               if ((sprite piece intersects k)and k <> V) then
  66.                 puppetsprite piece, false
  67.                 set the castnum of sprite 46 to the number of cast 38
  68.                 updatestage
  69.               else
  70.                 puppetsprite piece, false
  71.                 updatestage
  72.               end if
  73.             end if
  74.           end repeat
  75.         end if
  76.       end if
  77.     end if
  78.   end repeat
  79.   updatestage
  80.   if the mousedown then
  81.     if the clickon = 25 then
  82.       set the castnum of sprite 46 to the number of cast 20 
  83.       set the castnum of sprite 25 to the number of cast 28
  84.     else
  85.       if the clickon = 23 then
  86.         set the castnum of sprite 46 to the number of cast 20
  87.         set the castnum of sprite 23 to the number of cast 30
  88.       else
  89.         if the clickon = 24 then
  90.           set the castnum of sprite 24 to the number of cast 32
  91.           set the castnum of sprite 46 to the number of cast 20
  92.           updatestage   
  93.         end if
  94.       end if
  95.     end if
  96.   end if
  97. end crop
  98.  
  99.